package com.zh.service.impl;

import com.zh.common.Result;
import com.zh.entity.Menu;
import com.zh.mapper.MenuMapper;
import com.zh.service.MenuService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author zh
 * @since 2025-04-05
 */
@Service
public class MenuServiceImpl extends ServiceImpl<MenuMapper, Menu> implements MenuService {

    @Override
    public Result list(String roleId) {
        List<Menu> list = this.lambdaQuery().like(Menu::getMenuRight,roleId).list();
        return Result.success(list, 0L);
    }

}
